home *** CD-ROM | disk | FTP | other *** search
/ NeXT Education Software Sampler 1992 Fall / NeXT Education Software Sampler 1992 Fall.iso / Programming / Source / HippoDraw / HippoDrawSrc1.1 / Hippo.subproj / Line.h < prev    next >
Encoding:
Text File  |  1992-04-25  |  721 b   |  42 lines

  1. #import "Graphic.h"
  2.  
  3. @interface Line : Graphic
  4. {
  5.     int startCorner;    /* corner we start creating from */
  6. }
  7.  
  8. /* Initialization method */
  9.  
  10. + initialize;
  11.  
  12. /* Creation method */
  13.  
  14. - init;
  15.  
  16. /* Methods overridden from superclass */
  17.  
  18. - (BOOL)isValid;
  19. - (int)moveCorner:(int)corner to:(const NXPoint *)point constrain:(BOOL)flag;
  20. - constrainCorner:(int)corner toAspectRatio:(float)ratio;
  21. - (int)cornerMask;
  22. - draw;
  23. - (BOOL)hit:(const NXPoint *)point;
  24.  
  25. /* Methods to be overridden by subclassers */
  26.  
  27. - (float)arrowAngle:(int)corner;
  28. - drawLine;
  29.  
  30. /* Line is more important than fill color */
  31.  
  32. - (BOOL)wantsLineColor;
  33. - (BOOL)wantsFillColor;
  34.  
  35. /* Archiving */
  36.  
  37. - write:(NXTypedStream *)stream;
  38. - read:(NXTypedStream *)stream;
  39.  
  40. @end
  41.  
  42.